import { config } from 'setting'
import { request } from 'utils'

const { call = {} } = config
// 将开发者接口IP相对应字段赋值给一个变量即可
const developer = call.lyq || ''

export function queryList (pageIn = {}) {
  const params = {
    pageIn,
  }
  return request({
    url: `${developer}/getTableData`,
    method: 'post',
    data: params,
  })
}

// 删除
export function remove (id) {
  return request({
    url:`${developer}/deleteUserInfo`,
    method: 'post',
    data:{
      key:id,
    },
  })
}

// 修改
export function patch (id, values) {
  return request({
    url:`${developer}/updateUserInfo`,
    data:{
      id:id,
      values:values,
    },
  })
}